<?php
// change the following paths if necessary
//$yii = dirname(__FILE__) . '/home/justgetd/jgd-resources/framework/yii.php';
$yii = '/home/justgetd/jgd-resources/framework/yii.php';
//$config = dirname(__FILE__) . '/home/justgetd/jgd-resources/protected/config/main.php';
$config = '/home/justgetd/jgd-resources/protected/config/main.php';

// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', false);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);

require_once($yii);
Yii::createConsoleApplication($config)->run();

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => 'My Console Application',
    // preloading 'log' component
    'preload' => array('log'),
	// autoloading model and component classes
    'import' => array(
        'application.models.*',
        'application.components.*',
		'application.commands.shell.*',
    ),
    // application components
    'components' => array(        
        /*'db' => array(
            'connectionString' => 'sqlite:' . dirname(__FILE__) . '/../data/testdrive.db',
        ),*/
        // uncomment the following to use a MySQL database
        'db' => array(
            'connectionString' => 'mysql:host=localhost;dbname=jgd-webapp',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '1234',
            'charset' => 'utf8',
        ),
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'info, error, warning',
                ),
            ),
        ),
    ),
);